﻿using EIP.Authorize.Logic.Models;
using System;
using System.Threading.Tasks;

namespace EIP.Authorize.Logic.Repository
{
    public interface IAccountRepository
    {
        /// <summary>
        /// 根据登录代码和密码查询用户信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<LoginOutput> Login(LoginInput input);

        /// <summary>
        /// 更新最后时间
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <returns></returns>
        Task<bool> UpdateTime(Guid userId);
    }
}